<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      .father {
        width: 100%;
        height: 500px;
        background-color: pink;
      }
      .box {
        width: 200px;
        height: 100%;
        background-color: skyblue;
      }
      .center {
        float: left;
        height: 100%;
        width: 100%;
        background-color: orange;
        padding: 0 200px;
      }
      .left {
        float: left;
        margin-left: -100%;
      }
      .right {
        float: left;
        margin-left: -200px;
      }
    </style>
  </head>
  <body>
    <!-- 实现三栏布局,两边固定,中间自适应 -->
    <div class="father">
      <div class="center">中间</div>
      <div class="left box">左边</div>
      <div class="right box">右边</div>
    </div>
  </body>
</html>
